package cn.iocoder.yudao.module.mzt.controller.app.portal.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Schema(description = "用户 App - 通用分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class PortalPageReqVO extends PageParam {
    @Schema(description = "分类id")
    private Long categoryId;
    public Integer getOffset() {
        return (getPageNo() - 1) * getPageSize();
    }
}
